package demo1.service;

import demo1.mapper.UserMapper;
import demo1.model.User;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author quan
 * @Description 服务层实现代码
 * @Date 2023/7/24 9:33
 */
@Service
public class UserService {
    @Resource
    private UserMapper userMapper;
    public List<User> queryAll(){
        return userMapper.queryAll();
    }
}
